<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>AFS Java: afsjava.Workcenter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">AFS Java
   &#160;<span id="projectnumber">3.0</span>
   </div>
   <div id="projectbrief">Algorithms for Scheduling</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceafsjava.html">afsjava</a></li><li class="navelem"><a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">afsjava.Workcenter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="classafsjava_1_1_workcenter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abbe1f825bcdfb6b8876589505b517614"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#abbe1f825bcdfb6b8876589505b517614">Workcenter</a> ()</td></tr>
<tr class="memitem:ad5b2ea2429b805f16cdd6aaa28f6789d"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#ad5b2ea2429b805f16cdd6aaa28f6789d">getID</a> ()</td></tr>
<tr class="memitem:a286e85fd83bd421a95e2876a6dc8b7bd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a286e85fd83bd421a95e2876a6dc8b7bd">getNumberOfMachines</a> ()</td></tr>
<tr class="memitem:a57673eaf2ff86c0758f1f9f63459b9b3"><td class="memItemLeft" align="right" valign="top">int[][]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a57673eaf2ff86c0758f1f9f63459b9b3">getSetup</a> ()</td></tr>
<tr class="memitem:a497cab660e7fc4ab8787dd7210afcc0f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a497cab660e7fc4ab8787dd7210afcc0f">getSetup</a> (int i, int j)</td></tr>
<tr class="memitem:a309db52c2d7784398915913d8a3942ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classafsjava_1_1_machine.html">Machine</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a309db52c2d7784398915913d8a3942ee">getMchArray</a> ()</td></tr>
<tr class="memitem:a712c243278ad105fc39ba6f814218f77"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classafsjava_1_1_machine.html">Machine</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a712c243278ad105fc39ba6f814218f77">getMachine</a> (int i)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1e8954d7c3fae6d3f4832b17c46cc21e"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a1e8954d7c3fae6d3f4832b17c46cc21e">getFramework</a> ()</td></tr>
<tr class="memitem:a6c1bcebe15a98cba11f8c0139d9e13cd"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a6c1bcebe15a98cba11f8c0139d9e13cd">getNumberOfWorkcenters</a> ()</td></tr>
<tr class="memitem:a7941a0bf369d557431572fa942fce1c0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a7941a0bf369d557431572fa942fce1c0">readMachineFile</a> (BufferedReader in, <a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a> wkcArray[])  throws IOException </td></tr>
<tr class="memitem:a4363aa4d0594c269459857941de86e59"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafsjava_1_1_workcenter.html#a4363aa4d0594c269459857941de86e59">printWorkcenters</a> (<a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a>[] wkcArray)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Title: AFS Java version 3.0</p>
<p>Description: Algorithms for Scheduling version Java</p>
<p>Copyright: Copyright (c) 2005</p>
<p>Company: Pylo.Uniandes.edu.co</p>
<p><b> <a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a> Members </b> <b> static final int MAXSETUP</b> Maximum size of the setup matrix. <br/>
 <b> static final int MAXMACHINES </b> Maximum number of parallel machines. <br/>
 <b> static final int MAXWORKCENTERS </b> Maximum number of workcenters. <br/>
 <b> static String framework</b> Framework defines the type of machine setting. <br/>
 <b> static int numberOfWorkcenters </b> Defines the current number of workcenters in the system. <br/>
 <b> String WorkcenterId </b> Defines the workcenter ID.<br/>
 <b> <a class="el" href="classafsjava_1_1_machine.html">Machine</a> machineArray[] </b> Defines the array of parallel machines of the the workcenter. <br/>
 <b> int setupMatrix[][] </b> Defines the matrix of sequence dependent setup times.<br/>
 <b> int numberOfMachines </b> Defines the total number of machines in the workcenter. <br/>
 </p>
<dl class="section author"><dt>Author:</dt><dd>Gonzalo Mejia </dd></dl>
<dl class="section version"><dt>Version:</dt><dd>3.0 </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00045">45</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abbe1f825bcdfb6b8876589505b517614"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">afsjava.Workcenter.Workcenter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default Constructor </p>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00095">95</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1e8954d7c3fae6d3f4832b17c46cc21e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String afsjava.Workcenter.getFramework </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>getFramework returns the framework that can be either "Flexible" or "Ordinary"</p>
<dl class="section return"><dt>Returns:</dt><dd>String </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00108">108</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="ad5b2ea2429b805f16cdd6aaa28f6789d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String afsjava.Workcenter.getID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>getId returns the workcenter Id</p>
<dl class="section return"><dt>Returns:</dt><dd>String </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00118">118</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a712c243278ad105fc39ba6f814218f77"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classafsjava_1_1_machine.html">Machine</a> afsjava.Workcenter.getMachine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>getMachine returns the i-th machine in a workcenter</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>int </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd><a class="el" href="classafsjava_1_1_machine.html">Machine</a> </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00173">173</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a309db52c2d7784398915913d8a3942ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classafsjava_1_1_machine.html">Machine</a> [] afsjava.Workcenter.getMchArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>getMchArray returns the array of parellel machines in a workcenter</p>
<dl class="section return"><dt>Returns:</dt><dd><a class="el" href="classafsjava_1_1_machine.html">Machine</a>[] </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00163">163</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a286e85fd83bd421a95e2876a6dc8b7bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int afsjava.Workcenter.getNumberOfMachines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>getNumberOfMachines returns the number of parallel machines in a workcenter</p>
<dl class="section return"><dt>Returns:</dt><dd>int </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00127">127</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a6c1bcebe15a98cba11f8c0139d9e13cd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int afsjava.Workcenter.getNumberOfWorkcenters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>getNumberOfWorkcenters</p>
<dl class="section return"><dt>Returns:</dt><dd>int: Returns the total number of workcenters </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00188">188</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a57673eaf2ff86c0758f1f9f63459b9b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int [][] afsjava.Workcenter.getSetup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>getSetup returns the sequence dependent setup times two dimensional array. Returns integer numbers. <br/>
 0 corresponds to 'A"; 1 to 'B' and so forth. <br/>
</p>
<dl class="section return"><dt>Returns:</dt><dd>int[][] </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00137">137</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a497cab660e7fc4ab8787dd7210afcc0f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int afsjava.Workcenter.getSetup </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>getSetup (i,j) returns the i,j position of the sequence dependent setup times two dimensional array. <br/>
 0 corresponds to 'A'; 1 to 'B' and so forth. <br/>
</p>
<dl class="section return"><dt>Returns:</dt><dd>int </dd></dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00147">147</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a4363aa4d0594c269459857941de86e59"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void afsjava.Workcenter.printWorkcenters </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a>[]&#160;</td>
          <td class="paramname"><em>wkcArray</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>printWorkCenters prints the workcenter information to the console</p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">wkcArray</td><td><a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a>[] </td></tr>
    <tr><td class="paramname">workcenters</td><td>StringBuffer </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00366">366</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<a class="anchor" id="a7941a0bf369d557431572fa942fce1c0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void afsjava.Workcenter.readMachineFile </td>
          <td>(</td>
          <td class="paramtype">BufferedReader&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a>&#160;</td>
          <td class="paramname"><em>wkcArray</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws IOException </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>readMachineFile Reads the machine data from the file "_user.mch". Sets the values of workcenter and machine atributes </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">in</td><td>BufferedReader </td></tr>
    <tr><td class="paramname">wkcArray</td><td><a class="el" href="classafsjava_1_1_workcenter.html">Workcenter</a>[]: An array of Workcenters </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions:</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IOException</td><td>if the file does not conform the Lekin format </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_workcenter_8java_source.html#l00200">200</a> of file <a class="el" href="_workcenter_8java_source.html">Workcenter.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/afsjava/<a class="el" href="_workcenter_8java_source.html">Workcenter.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Jun 2 2012 08:28:19 for AFS Java by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1
</small></address>
</body>
</html>
